import("https://cdn.bootcdn.net/ajax/libs/html2canvas/1.4.1/html2canvas.min.js")
import {base64ToBlob} from "../file/file.js";

export function getCaptureImageBlob(success) {
    html2canvas(document.body).then((canvas) => {
        let dataURL = canvas.toDataURL("image/png");
        let imageBlob = base64ToBlob(dataURL);
        success(imageBlob)
    });
}
